xufei = 10000
rate = 0.05

year = 10
sum_xufei = xufei
while year>0:
    xufei = (1+0.05)*xufei
    sum_xufei += xufei
    year -= 1


print("十年之后的学费:",format(xufei,"10.2f"),",这十年的总学费：",format(sum_xufei,"10.2f"))